﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReplenishementExeList.aspx.cs" EnableEventValidation="false" Inherits="WMS6.Web.Inventory.ReplenishementExeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ReplenishementExeList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "ReplenishementExeQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
    </script>
</head>
<body>
    <form id="F5252" runat="server">
    <div>
    
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            
            <div id="div_List_top">
                <table>
                    <tr>
                        <td valign="bottom"><asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header"  Text="补货执行列表" ></asp:Label></td>
                         <td><asp:Button ID="btnConfirm" runat="server" CssClass="button" Text="确认"  Enabled="false" /></td>
                         <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="删除" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"  Enabled="false" /></td>
                    </tr>
                </table>
            </div>
            <div class="blank8">
            </div>
            
            
             <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>
                    
                    <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                     <table class="gridview" cellspacing="0" rules="all" border="1" id="gvReceipt" style="width: 1400px;
                        border-collapse: collapse;">
                        <tr class="GridViewHeaderStyle">
                            <th scope="col">
                                序号
                            </th>
                            <th class="GridViewRowWidth_40" align="center" scope="col">
                                <input id="gvReceipt_ctl01_CheckBox1" type="checkbox" name="gvReceipt$ctl01$CheckBox1"
                                    onclick="selectAll(this,'gvReceipt');" />
                            </th>
                            <th scope="col">
                                <a href="">货主代码</a>
                            </th>
                            <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$STATUS_D')">货品代码</a>
                            </th>
                            <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">描述</a>
                            </th>
                                
                                <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">来源货位</a>
                            </th>
                                <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">目标货位</a>
                            </th>
                                <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">LPN</a>
                            </th>
                                      <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">补货数量</a>
                            </th>
                                      <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">数量</a>
                            </th>
                                      <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">箱数</a>
                            </th>
                                         <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">包装代码</a>
                            </th>
                                         <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">单位</a>
                            </th>
                            <th scope="col">
                                <a href="javascript:__doPostBack('gvReceipt','Sort$RECEIPT_TYPE_D')">批号</a>
                            </th>
                        </tr>
                        <tr id="gvReceipt_ctl02" class="GridViewRowStyle" onmouseout="GridViewRowMouseout(this);"
                            onmouseover="GridViewRowMouseover(this);" id="gvReceipt_ctl02">
                            <td class="GridViewRowWidth_40">
                                1
                            </td>
                            <td class="GridViewRowWidth_40" align="center">
                                <input id="gvReceipt_ctl02_chbSelect" type="checkbox" name="gvReceipt$ctl02$chbSelect"
                                    onclick="GridViewCheckBoxClick('gvReceipt_ctl02');" />
                            </td>
                            <td class="GridViewRowWidth_150">
                                MIDEA
                            </td>
                            <td class="GridViewRowWidth_150">
                                EG823LC7-NSH1 
                            </td>
                            <td class="GridViewRowWidth_150">
                               美的微波炉</td>
                            <td class="GridViewRowWidth_150">
                                GBD01
                            </td>
                            <td class="GridViewRowWidth_100">
                            P001
                            </td>
                             <td class="GridViewRowWidth_100">
                                 90950
                            </td>
                           
                            <td class="GridViewRowWidth_100">
                                50</td>
                           
                            <td class="GridViewRowWidth_100">
                                50
                            </td>
                           
                            <td class="GridViewRowWidth_100">
                              5
                            </td>
                           
                            <td class="GridViewRowWidth_100">
                               STD</td>
                           
                            <td class="GridViewRowWidth_100">
                                EA</td>
                           
                            <td class="GridViewRowWidth_100">
                                0000001131</td>
                           
                           
                        </tr>
                        <tr id="Tr1" class="GridViewRowStyle" onmouseout="GridViewRowMouseout(this);"
                            onmouseover="GridViewRowMouseover(this);" id="gvReceipt_ctl02">
                            <td class="GridViewRowWidth_40">
                                1
                            </td>
                            <td class="GridViewRowWidth_40" align="center">
                                <input id="Checkbox1" type="checkbox" name="gvReceipt$ctl02$chbSelect"
                                    onclick="GridViewCheckBoxClick('gvReceipt_ctl02');" />
                            </td>
                            <td class="GridViewRowWidth_100">
                                MIDEA
                            </td>
                            <td class="GridViewRowWidth_100">
                                EG823LC7-NSH1 
                            </td>
                            <td class="GridViewRowWidth_100">
                               美的微波炉</td>
                            <td class="GridViewRowWidth_100">
                                GBD02
                            </td>
                            <td class="GridViewRowWidth_100">
                            P002
                            </td>
                             <td class="GridViewRowWidth_100">
                                 90951
                            </td>
                           
                            <td class="GridViewRowWidth_100">
                                30</td>
                           
                            <td class="GridViewRowWidth_50">
                                30
                            </td>
                           
                            <td class="GridViewRowWidth_50">
                              3
                            </td>
                           
                            <td class="GridViewRowWidth_50">
                               STD</td>
                           
                            <td class="GridViewRowWidth_50">
                                EA</td>
                           
                            <td class="GridViewRowWidth_100">
                                0000001131</td>
                           
                           
                        </tr>                     
                                              
                    </table>
                       <%--  <asp:GridView ID="gvReplenishementExeList" runat="server" AutoGenerateColumns="False" AllowSorting="true"   
                            CssClass="gridview"  DataKeyNames="REPLENISHMENT_ID" PageSize="20" Width="1000px" >
                            <FooterStyle CssClass="GridViewFooterStyle" />
                            <RowStyle CssClass="GridViewRowStyle" />
                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                <Columns>
                                    <asp:BoundField HeaderText="序号" FooterText="序号" ><ItemStyle CssClass="GridViewRowWidth_40" /></asp:BoundField>
                                    
                                    <asp:TemplateField >
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server"  onclick="selectAll(this,'gvReplenishementExeList');" /> 
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chbSelect" runat="server"  />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server"   onclick="selectAll(this,'gvReplenishementExeList');" /> 
                                    </FooterTemplate>
                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                                </asp:TemplateField>
                                
                                <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OWNER_ID" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="" HeaderText="描述" FooterText="描述" SortExpression="" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="LOT" HeaderText="批号" FooterText="批号" SortExpression="LOT" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="FROM_LOC" HeaderText="来源货位" FooterText="来源货位" SortExpression="FROM_LOC" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="TO_LOC" HeaderText="目标货位" FooterText="目标货位" SortExpression="TO_LOC" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="LPN_ID" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="QTY_MOVED" HeaderText="补货数量" FooterText="补货数量" SortExpression="QTY_MOVED" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="QTY" HeaderText="数量" FooterText="数量" SortExpression="QTY" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="" HeaderText="箱数" FooterText="箱数" SortExpression="" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" SortExpression="PACK_ID" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                <asp:BoundField DataField="UOM_ID" HeaderText="单位" FooterText="单位" SortExpression="UOM_ID" ><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                              </Columns>
                          </asp:GridView>--%>
                      </div>
                 </ContentTemplate>
             </asp:UpdatePanel>
    
    
            <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="新建查询" CssClass="button"  Enabled="false"
                            OnClientClick="javascript:window.location.href='ReplenishementExeQuery.aspx';return false;" 
                            meta:resourcekey="btnSearchResource1"  />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="返回查询" CssClass="button"  Enabled="false"
                            OnClientClick="javascript:returnSearch();return false;" 
                            meta:resourcekey="btnReSearchResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="导出" CssClass="button"  Enabled="false"
                             onclick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div> 
            
    </div>
    </form>
</body>
</html>
